package com.imooc.o2o.util;

public class PathUtil {
	private static String separator = System.getProperty("file.separator");
	public static String getImgBasePath() {		
		String os = System.getProperty("os.name");
		String basePath="";
		if(os.toLowerCase().startsWith("win")) {
			basePath = "D:/practice1/image/";	
		}else {
			basePath = "/home/yhch/image/";
		}
		basePath = basePath.replace("/", separator);
		return basePath;
	}
	public static String getShopImagePath(long shopId) {
		String imagePath="ShopImage/"+shopId+"/";
		return imagePath.replace("/", separator);
	}
}
